<template>
	<view>
		<view class="" style="background-color: skyblue;">
			<view class="text-area">
				<text>输入值：</text><input type="text" v-model="title" style="color: red;" />
			</view>
			<view class="text-area">
				<text>传回值：</text><input type="text" :value="callBackValue" style="color: yellow;" />
			</view>
			<comA :intent="title"></comA>
			<comB @callBackFun="callBack"></comB>
		</view>
	</view>
</template>

<script>
	import comA from '../../components/comA.vue';
	import comB from '../../components/comB.vue';
	export default {
		components: {
			comA,
			comB
		},
		data() {
			return {
				title: "",
				callbackValue: ""

			}
		},
		methods: {
			callBack(msg) {
				console.log("callBack--->", this.callBackValue)
				this.callBackValue = msg;
			}
		}
	}
</script>

<style>

</style>